export default {
  namespaced:true,
  state: {
     goods:[
       {
         id:1,goods_name:'手机',price:100
       },
       {
         id:2,goods_name:'平板',price:200
       },
       {
         id:3,goods_name:'电脑',price:300
       },
     ]
  },
  mutations: {
     mDel(state,id){
       state.goods=state.goods.filter(item=>item.id!==id)
     }
  },
  actions: {
     
  },
}